import HouseMode from "./HouseMode";
import HouseList from "./HouseList";
import HouseRecycle from "./HouseRecycle";
import HouseAdd from './HouseAdd';
import authCheck from '@/tool/authCheck';

const _path = [
    { path: '', component: HouseMode },
    { path: '/房源列表', component: HouseList },
    { path: '/回收站', component: HouseRecycle },
    { path: '/录入房源', component: HouseAdd }
];

export const path = () => {
    if (!authCheck('*', '房源')) return [];
    return _path;
};

export const pathName = '房源';